package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;
@Data
@ApiModel("产品信息")
@TableName("spu")
public class Spu {
    @TableId(value = "spu_id",type = IdType.AUTO)
    Integer spu_id;
    Integer brand_id;
    Integer category_id;
    Integer shop_category_id;
    Integer shop_id;
    @NotBlank(message = "商品名称不能为空！")
    String name;
    String selling_point;
    String main_img_url;
    String video;
    Integer price_fee;
    Integer market_price_fee;

    Integer has_sku_img;
    Integer seq;
    @TableField(exist = false)
    String detail;

    @TableField(exist = false)
    List<Att> attList;//规格属性

    @TableField(exist = false)
    List<Sku> skuList;
}
